package com.xiyu.service.enums.material.order;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 物资调拨单状态
*/
@Getter
@AllArgsConstructor
public enum MaterialTransferStatusEnum implements IntArrayValuable {

    /**
    * 待审核
    */
    PENDING_REVIEW(1, "待审核"),
    /**
    * 待出库
    */
    PENDING_OUT(2, "待出库"),
    /**
    * 部分出库
    */
    PARTIAL_OUT(3, "部分出库"),
    /**
    * 待入库
    */
    PENDING_IN(4, "待入库"),
    /**
    * 部分入库
    */
    PARTIAL_IN(5, "部分入库"),
    /**
    * 已完成
    */
    COMPLETED(6, "已完成"),
    /**
    * 已取消
    */
    CANCEL(7, "已取消");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MaterialTransferStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MaterialTransferStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
